<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>成绩管理系统登录界面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

<link rel="stylesheet" href="<%=basePath%>css/sty.css" type="text/css" media="all" />
<link href="<%=basePath%>css/demo.css" type="text/css" rel="stylesheet" />
<style>
body {
	margin: 0 auto;
	text-align: center;
	font: 12px/1.5 arial;
	color: #242424;
	background-image: url(images/2.jpg);
	background-repeat: no-repeat;
	background-color: #175560
}

.registerform li {
	padding-bottom: 15px;
}

.Validform_checktip {
	margin-left: 10px;
}

.registerform .label {
	display: inline-block;
	width: 80px;
}

.action {
	padding-left: 92px;
}
</style>
</head>
<!-- 
学生成绩管理系统登录界面
 -->
<body background="images/2.jpg">
	<span><h1>学生成绩管理系统</h1> </span>
	<div class="middle">

		<div class="picture">

			<div class="wraper">

				<form class="registerform" action="login.action" method="post">
					<ul>
						<li><h2 class="green">用户登录</h2></li>
						<li><s:property value="#request.meg" /></li>
						<li><label class="label"><span class="need">*&nbsp;&nbsp;</span><font class="word">用户名：</font> </label> <input type="text" value="" name="userID" class="inputxt" datatype="n" nullmsg="用户名不能为空！" />
							<div class="Validform_checktip"></div></li>
						<li><label class="label"><span class="need">*&nbsp;&nbsp;</span><font class="word">密码：</font> </label> <input type="password" value="" name="password" class="inputxt" datatype="s" nullmsg="密码不能为空！" />
							<div class="Validform_checktip"></div></li>
						<li><label class="label"><span class="need">*&nbsp;&nbsp;</span><font class="word">用户类型</font> </label> <input type="radio" value="student" name="role" id="student" class="pr1" checked="checked" /><label for="student">学生</label> <input type="radio" value="teacher" name="role" id="teacher" class="pr1" /><label for="teacher">老师</label> <input type="radio" value="admin" name="role" id="admin" class="pr1" /><label for="admin">管理员</label></li>

					</ul>
					<div class="action">
						<input type="submit" value="提 交" />&nbsp;&nbsp;&nbsp; <input type="reset" value="重 置" /> <span id="msgdemo" style="margin-left:30px;"></span>
					</div>
				</form>

			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="js/Validform_v5.3.2.js"></script>
	<script type="text/javascript">
		$(function() {
			//$(".registerform").Validform();  //就这一行代码！;
			$(".registerform").Validform({
				tiptype : 4
			});
		})
	</script>
</body>
</html>